package book;

public class CurrentThreadTest {

	static class MyThread extends Thread{
		
		public MyThread() {
			
			System.out.println(Thread.currentThread().getName());
			System.out.println(this.getName());
		}
		
		public void run(){
			
			System.out.println(Thread.currentThread().getName());
			System.out.println(this.getName());
		}
	}
	
	public static void main(String[] args) {
		
		MyThread t = new MyThread();
		t.start();
	}
}
